<?php

namespace App\Models;

class EwBill extends BaseModel
{

    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=11, nullable=false)
     */
    public $id;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $member_id;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $to_member_id;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $data_id;

    /**
     *
     * @var string
     * @Column(type="string", length=60, nullable=true)
     */
    public $bill_name;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=true)
     */
    public $bn;

    /**
     *
     * @var double
     * @Column(type="double", length=10, nullable=true)
     */
    public $amount;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $pay_time;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $pay_code;

    /**
     *
     * @var integer
     * @Column(type="integer", length=1, nullable=true)
     */
    public $bill_type;

    /**
     *
     * @var string
     * @Column(type="string", nullable=false)
     */
    public $create_time;

    /**
     *
     * @var integer
     * @Column(type="integer", length=1, nullable=true)
     */
    public $state;



    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'ew_bill';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return EwBill[]|EwBill
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return EwBill
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
